<template>
  <SmsConfig v-bind="stats.data"/>
</template>
<script lang="ts" setup>
import {ref} from 'vue';
import {useDesign} from '/@/hooks/web/useDesign';
import {useGlobSetting} from '/@/hooks/setting';
import {ConfigKey} from '/@/views/system/config/config.model';
import SmsConfig from './SmsConfig.vue'
import {FormSchema} from '/@/components/Table';

const juMeiFormSchema : FormSchema[] = [
  {
    field: 'appCode',
    label: 'appCode',
    required: true,
    helpMessage: [
      "阿里云: <a target='_blank' href='https://market.aliyun.com/products/57000002/cmapi00046920.html#sku=yuncode4092000001'>购买链接</a>",
      "已购买: <a target='_blank' href='https://market.console.aliyun.com/?#/?_k=93mnbw'>商品列表</a>"
    ],
    component: 'Input',
  },
];

const stats = ref({
  data: { configKey: ConfigKey.SMS_JUMEI, formSchema: juMeiFormSchema},
})

const { prefixCls } = useDesign('config-center');

const glob = useGlobSetting();

</script>

<style lang="less">
@import '../../style.less';
</style>
